package asteroids.model.programs.Expression;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public class Disjunction extends BooleanComparison{

	public Disjunction(int line, int column, Expression e1, Expression e2) {
		super(line, column, e1, e2);
	}
	
	/**
	 * Returns the result of this disjunction.
	 * @return ...
	 * 			| result == (getFristExpression().getResult() || getSecondExpression.getResult())
	 */
	@Override
	public boolean getBoolean() {
		return (((IBooleanExpression)getFirstExpression()).getBoolean() || ((IBooleanExpression)getSecondExpression()).getBoolean());
	}

}
